package com.zong.ai.agent.common.enums;

import lombok.Getter;

/**
 * 响应码
 */
@Getter
public enum ResponseCode {
    SUCCESS("200", "请求成功"),
    ERROR("500", "请求失败"),
    BIZ_ERROR("0001", "业务异常"),
    UN_KNOW_ERROR("0002", "未知异常"),
    ;

    private final String code;
    private final String info;

    ResponseCode(String code, String info) {
        this.code = code;
        this.info = info;
    }

    public String getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }

}
